<html>
<head><meta charset="utf-8"><title>bug?: enter to continue doc comments · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/bug.3F.3A.20enter.20to.20continue.20doc.20comments.html">bug?: enter to continue doc comments</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="197012014"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/bug%3F%3A%20enter%20to%20continue%20doc%20comments/near/197012014" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Cole Lawrence <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/bug.3F.3A.20enter.20to.20continue.20doc.20comments.html#197012014">(May 09 2020 at 20:45)</a>:</h4>
<p>I feel like continuing doc comments with enter used to work. Did something change? It seems like this issue is talking about a similar problem <a href="https://github.com/rust-analyzer/rust-analyzer/issues/4052" title="https://github.com/rust-analyzer/rust-analyzer/issues/4052">https://github.com/rust-analyzer/rust-analyzer/issues/4052</a></p>



<a name="197012071"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/bug%3F%3A%20enter%20to%20continue%20doc%20comments/near/197012071" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/bug.3F.3A.20enter.20to.20continue.20doc.20comments.html#197012071">(May 09 2020 at 20:46)</a>:</h4>
<p>It was disabled by default</p>



<a name="197012080"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/bug%3F%3A%20enter%20to%20continue%20doc%20comments/near/197012080" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Cole Lawrence <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/bug.3F.3A.20enter.20to.20continue.20doc.20comments.html#197012080">(May 09 2020 at 20:46)</a>:</h4>
<p>How do I enable it?</p>



<a name="197012145"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/bug%3F%3A%20enter%20to%20continue%20doc%20comments/near/197012145" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/bug.3F.3A.20enter.20to.20continue.20doc.20comments.html#197012145">(May 09 2020 at 20:48)</a>:</h4>
<p>Copy this into your keybindings:</p>
<div class="codehilite"><pre><span></span><code>    <span class="p">{</span>
        <span class="nt">&quot;key&quot;</span><span class="p">:</span> <span class="s2">&quot;Enter&quot;</span><span class="p">,</span>
        <span class="nt">&quot;command&quot;</span><span class="p">:</span> <span class="s2">&quot;rust-analyzer.onEnter&quot;</span><span class="p">,</span>
        <span class="nt">&quot;when&quot;</span><span class="p">:</span> <span class="s2">&quot;editorTextFocus &amp;&amp; !suggestWidgetVisible &amp;&amp; editorLangId == rust&quot;</span>
    <span class="p">}</span>
</code></pre></div>



<a name="197012161"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/bug%3F%3A%20enter%20to%20continue%20doc%20comments/near/197012161" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Cole Lawrence <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/bug.3F.3A.20enter.20to.20continue.20doc.20comments.html#197012161">(May 09 2020 at 20:49)</a>:</h4>
<p><span class="user-mention" data-user-id="211727">@Jonas Schievink</span>  Wow! Thank you so much</p>



<a name="197012169"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/bug%3F%3A%20enter%20to%20continue%20doc%20comments/near/197012169" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Jonas Schievink  [he/him] <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/bug.3F.3A.20enter.20to.20continue.20doc.20comments.html#197012169">(May 09 2020 at 20:49)</a>:</h4>
<p>No problem!</p>



<a name="197039017"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/bug%3F%3A%20enter%20to%20continue%20doc%20comments/near/197039017" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Laurențiu <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/bug.3F.3A.20enter.20to.20continue.20doc.20comments.html#197039017">(May 10 2020 at 07:23)</a>:</h4>
<p>Unless you're using the Vim extension, then you need <a href="https://github.com/rust-analyzer/rust-analyzer/issues/4214#issue-609481879" title="https://github.com/rust-analyzer/rust-analyzer/issues/4214#issue-609481879">https://github.com/rust-analyzer/rust-analyzer/issues/4214#issue-609481879</a></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>